package com.zhoun.service;

import com.github.pagehelper.PageInfo;
import com.zhoun.common.ServerResponse;
import com.zhoun.pojo.Product;

public interface ProductService {

    ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);

    ServerResponse addOrUpdate(Product product);

    ServerResponse delete(Integer productId);

    ServerResponse getProductById(Integer productId);

    ServerResponse selectProductBySpec(String spec);

    ServerResponse getProductListByCategoryId(Integer categoryId);


}
